import axios from 'axios'
import { APPKEY } from '@/appkey'
export function aGet(options) {
  axios
    .get(options.url, {
      params: {
        ...options.data,
        key: APPKEY
      }
    })
    .then(data => {
      options.success(data)
    })
    .catch(err => {
      options.error(err)
    })
}
